package com.asset.dispoal.evidenceType.service.commom;

import com.asset.dispoal.evidenceType.domain.db.mapper.BsEvidenceTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommand;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/24$
 */
@Component
public class EvidenceTypeDelCommand implements BaseCommand<String, Result> {


    @Autowired
    BsEvidenceTypeMapper bsEvidenceTypeMapper;


    @Override
    public Result execute(String s) {
        bsEvidenceTypeMapper.delete(s);
        return Result.ok();
    }
}
